package com.yulan.bankback.entity.model.bank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserCapitalFlow {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String uid;

    private Double money;

    private String type;

    private Date time;

    @TableField(exist = false)
    private String viewTime = "";

    private Date createTime;

    private String moneySrc;

    private Integer isSensitive;

    public UserCapitalFlow(String uid, Double money, String type, Date time,
                           String viewTime, Date createTime, String moneySrc,
                           Integer isSensitive) {
        this.uid = uid;
        this.money = money;
        this.type = type;
        this.time = time;
        this.viewTime = viewTime;
        this.createTime = createTime;
        this.moneySrc = moneySrc;
        this.isSensitive = isSensitive;
    }
}
